<template>
	<view class="container">
		<view class="tui-page__hd">
			<view class="tui-page__title">表单验证</view>
			<view class="tui-page__desc">tui-form组件主要用于表单校验，提供了常用的表单校验方法，支持自定义扩展校验方法，提供了错误信息展示等。</view>
		</view>
		<view class="tui-page__bd">
			<tui-button type="gray-primary" :size="34" bold width="372rpx" height="84rpx" margin="80rpx auto 40rpx"
				@click="href(1)">手动收集数据</tui-button>
			<tui-button type="gray-primary" :size="34" bold width="372rpx" height="84rpx" margin="40rpx auto"
				@click="href(2)">结合原生表单</tui-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {
			href(type) {
				let page = '../form-page/form-page'
				if (type == 2) {
					page = '../form-validation/form-validation'
				}
				this.tui.href(page)
			}
		}
	}
</script>

<style></style>